package com.his.his_system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 处方列表
 * @TableName dzm_his_care_order
 */
@TableName(value ="dzm_his_care_order")
public class DzmHisCareOrder implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Object id;

    /**
     * 医院id
     */
    private Object hospitalId;

    /**
     * 医生id
     */
    private Object doctorId;

    /**
     * 患者id
     */
    private Object patientId;

    /**
     * 关联病历id
     */
    private Object careHistoryId;

    /**
     * 收费总表care_pkg.id
     */
    private Object pkgId;

    /**
     * 状态，0未支付，1已支付，2确认收款，3申请退款，4已退款
     */
    private Integer status;

    /**
     * 处方名
     */
    private String label;

    /**
     * 每set_num_a天,set_num_b剂，服用set_num_c天，共set_num_d剂
     */
    private Integer numA;

    /**
     * 每set_num_a天,set_num_b剂，服用set_num_c天，共set_num_d剂
     */
    private Integer numB;

    /**
     * 每set_num_a天,set_num_b剂，服用set_num_c天，共set_num_d剂
     */
    private Integer numC;

    /**
     * 每num_a天,num_b剂，服用num_c天，共num_d剂
     */
    private Integer numD;

    /**
     * 单处方金额
     */
    private BigDecimal amount;

    /**
     * 处方全额
     */
    private BigDecimal allAmount;

    /**
     * 插入时间，php时间戳
     */
    private Object addtime;

    /**
     * 诊断编号
     */
    private String caseCode;

    /**
     * 服药要求
     */
    private String useTips;

    /**
     * 备注
     */
    private String memo;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Object getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Object id) {
        this.id = id;
    }

    /**
     * 医院id
     */
    public Object getHospitalId() {
        return hospitalId;
    }

    /**
     * 医院id
     */
    public void setHospitalId(Object hospitalId) {
        this.hospitalId = hospitalId;
    }

    /**
     * 医生id
     */
    public Object getDoctorId() {
        return doctorId;
    }

    /**
     * 医生id
     */
    public void setDoctorId(Object doctorId) {
        this.doctorId = doctorId;
    }

    /**
     * 患者id
     */
    public Object getPatientId() {
        return patientId;
    }

    /**
     * 患者id
     */
    public void setPatientId(Object patientId) {
        this.patientId = patientId;
    }

    /**
     * 关联病历id
     */
    public Object getCareHistoryId() {
        return careHistoryId;
    }

    /**
     * 关联病历id
     */
    public void setCareHistoryId(Object careHistoryId) {
        this.careHistoryId = careHistoryId;
    }

    /**
     * 收费总表care_pkg.id
     */
    public Object getPkgId() {
        return pkgId;
    }

    /**
     * 收费总表care_pkg.id
     */
    public void setPkgId(Object pkgId) {
        this.pkgId = pkgId;
    }

    /**
     * 状态，0未支付，1已支付，2确认收款，3申请退款，4已退款
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 状态，0未支付，1已支付，2确认收款，3申请退款，4已退款
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 处方名
     */
    public String getLabel() {
        return label;
    }

    /**
     * 处方名
     */
    public void setLabel(String label) {
        this.label = label;
    }

    /**
     * 每set_num_a天,set_num_b剂，服用set_num_c天，共set_num_d剂
     */
    public Integer getNumA() {
        return numA;
    }

    /**
     * 每set_num_a天,set_num_b剂，服用set_num_c天，共set_num_d剂
     */
    public void setNumA(Integer numA) {
        this.numA = numA;
    }

    /**
     * 每set_num_a天,set_num_b剂，服用set_num_c天，共set_num_d剂
     */
    public Integer getNumB() {
        return numB;
    }

    /**
     * 每set_num_a天,set_num_b剂，服用set_num_c天，共set_num_d剂
     */
    public void setNumB(Integer numB) {
        this.numB = numB;
    }

    /**
     * 每set_num_a天,set_num_b剂，服用set_num_c天，共set_num_d剂
     */
    public Integer getNumC() {
        return numC;
    }

    /**
     * 每set_num_a天,set_num_b剂，服用set_num_c天，共set_num_d剂
     */
    public void setNumC(Integer numC) {
        this.numC = numC;
    }

    /**
     * 每num_a天,num_b剂，服用num_c天，共num_d剂
     */
    public Integer getNumD() {
        return numD;
    }

    /**
     * 每num_a天,num_b剂，服用num_c天，共num_d剂
     */
    public void setNumD(Integer numD) {
        this.numD = numD;
    }

    /**
     * 单处方金额
     */
    public BigDecimal getAmount() {
        return amount;
    }

    /**
     * 单处方金额
     */
    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    /**
     * 处方全额
     */
    public BigDecimal getAllAmount() {
        return allAmount;
    }

    /**
     * 处方全额
     */
    public void setAllAmount(BigDecimal allAmount) {
        this.allAmount = allAmount;
    }

    /**
     * 插入时间，php时间戳
     */
    public Object getAddtime() {
        return addtime;
    }

    /**
     * 插入时间，php时间戳
     */
    public void setAddtime(Object addtime) {
        this.addtime = addtime;
    }

    /**
     * 诊断编号
     */
    public String getCaseCode() {
        return caseCode;
    }

    /**
     * 诊断编号
     */
    public void setCaseCode(String caseCode) {
        this.caseCode = caseCode;
    }

    /**
     * 服药要求
     */
    public String getUseTips() {
        return useTips;
    }

    /**
     * 服药要求
     */
    public void setUseTips(String useTips) {
        this.useTips = useTips;
    }

    /**
     * 备注
     */
    public String getMemo() {
        return memo;
    }

    /**
     * 备注
     */
    public void setMemo(String memo) {
        this.memo = memo;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DzmHisCareOrder other = (DzmHisCareOrder) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getHospitalId() == null ? other.getHospitalId() == null : this.getHospitalId().equals(other.getHospitalId()))
            && (this.getDoctorId() == null ? other.getDoctorId() == null : this.getDoctorId().equals(other.getDoctorId()))
            && (this.getPatientId() == null ? other.getPatientId() == null : this.getPatientId().equals(other.getPatientId()))
            && (this.getCareHistoryId() == null ? other.getCareHistoryId() == null : this.getCareHistoryId().equals(other.getCareHistoryId()))
            && (this.getPkgId() == null ? other.getPkgId() == null : this.getPkgId().equals(other.getPkgId()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getLabel() == null ? other.getLabel() == null : this.getLabel().equals(other.getLabel()))
            && (this.getNumA() == null ? other.getNumA() == null : this.getNumA().equals(other.getNumA()))
            && (this.getNumB() == null ? other.getNumB() == null : this.getNumB().equals(other.getNumB()))
            && (this.getNumC() == null ? other.getNumC() == null : this.getNumC().equals(other.getNumC()))
            && (this.getNumD() == null ? other.getNumD() == null : this.getNumD().equals(other.getNumD()))
            && (this.getAmount() == null ? other.getAmount() == null : this.getAmount().equals(other.getAmount()))
            && (this.getAllAmount() == null ? other.getAllAmount() == null : this.getAllAmount().equals(other.getAllAmount()))
            && (this.getAddtime() == null ? other.getAddtime() == null : this.getAddtime().equals(other.getAddtime()))
            && (this.getCaseCode() == null ? other.getCaseCode() == null : this.getCaseCode().equals(other.getCaseCode()))
            && (this.getUseTips() == null ? other.getUseTips() == null : this.getUseTips().equals(other.getUseTips()))
            && (this.getMemo() == null ? other.getMemo() == null : this.getMemo().equals(other.getMemo()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getHospitalId() == null) ? 0 : getHospitalId().hashCode());
        result = prime * result + ((getDoctorId() == null) ? 0 : getDoctorId().hashCode());
        result = prime * result + ((getPatientId() == null) ? 0 : getPatientId().hashCode());
        result = prime * result + ((getCareHistoryId() == null) ? 0 : getCareHistoryId().hashCode());
        result = prime * result + ((getPkgId() == null) ? 0 : getPkgId().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getLabel() == null) ? 0 : getLabel().hashCode());
        result = prime * result + ((getNumA() == null) ? 0 : getNumA().hashCode());
        result = prime * result + ((getNumB() == null) ? 0 : getNumB().hashCode());
        result = prime * result + ((getNumC() == null) ? 0 : getNumC().hashCode());
        result = prime * result + ((getNumD() == null) ? 0 : getNumD().hashCode());
        result = prime * result + ((getAmount() == null) ? 0 : getAmount().hashCode());
        result = prime * result + ((getAllAmount() == null) ? 0 : getAllAmount().hashCode());
        result = prime * result + ((getAddtime() == null) ? 0 : getAddtime().hashCode());
        result = prime * result + ((getCaseCode() == null) ? 0 : getCaseCode().hashCode());
        result = prime * result + ((getUseTips() == null) ? 0 : getUseTips().hashCode());
        result = prime * result + ((getMemo() == null) ? 0 : getMemo().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", hospitalId=").append(hospitalId);
        sb.append(", doctorId=").append(doctorId);
        sb.append(", patientId=").append(patientId);
        sb.append(", careHistoryId=").append(careHistoryId);
        sb.append(", pkgId=").append(pkgId);
        sb.append(", status=").append(status);
        sb.append(", label=").append(label);
        sb.append(", numA=").append(numA);
        sb.append(", numB=").append(numB);
        sb.append(", numC=").append(numC);
        sb.append(", numD=").append(numD);
        sb.append(", amount=").append(amount);
        sb.append(", allAmount=").append(allAmount);
        sb.append(", addtime=").append(addtime);
        sb.append(", caseCode=").append(caseCode);
        sb.append(", useTips=").append(useTips);
        sb.append(", memo=").append(memo);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
